package com.study.spmongodb.wwj.guaua;

import java.util.concurrent.TimeUnit;

/**
 * @author MI
 * @version 1.0
 * @date 2020/12/14 22:04
 */
public class ElapsedExample {

    public static void main(String[] args) throws InterruptedException {
        process("12");
    }

    private static void process(String orderNo) throws InterruptedException {
        System.out.println("-================" + orderNo);
        final long l = System.nanoTime();
        TimeUnit.SECONDS.sleep(1);
        System.out.println("process success elpased" + orderNo + " " + (System.nanoTime() - l));
    }
}
